package com.terrytian.springboottq.convert;

import com.terrytian.springboottq.modules.dto.TestRequest;
import org.apache.commons.lang3.StringUtils;

/**
 * @program: DevSpace
 * @ClassName DemoConvert
 * @description: demo自定义转换器
 * @author: tianqing
 * @create: 2022-11-26 19:26
 * @Version 1.0
 **/
public class DemoConvert implements PreventConvert {

    @Override
    public String convert(Object[] args) {
        TestRequest testRequest = (TestRequest) args[0];
        return StringUtils.join(testRequest.getMobile());
    }
}